package org.example.forum.service;


import org.example.forum.model.Article;
import org.springframework.transaction.annotation.Transactional;


import java.util.List;

public interface IArticleService {
    List<Article> selectAll ();
    List<Article> selectByBoardId (Long boardId);
     @Transactional
    void create(Article article);
    List<Article> selectByUserId (Long userId);
    public Article selectDetailById(Long id);
    void modify(Long id, String title, String content);
    Article selectById (Long id);
    /**
     *点赞
     * @paramid帖⼦Id
     */
    void thumbsUpById (Long id);
    //delete帖子
   @Transactional
    void subOneArticleCountById (Long id);
}
